package com.mdd.common.validate;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;

@Data
@ApiModel("商户创建参数")
public class LabelVoValidate implements Serializable {

    private static final long serialVersionUID = 1L;

    @NotEmpty(message = "请选择标签")
    @ApiModelProperty(value = "标签ID")
    private List<Integer> labelList;

    @NotNull(message = "标签来源ID不能为空")
    @ApiModelProperty(value = "来源id")
    private String sourceId;

    @NotNull(message = "标签类型不能为空")
    @ApiModelProperty(value = "归属类型")
    private String sourceType;

    private Integer userId;

}
